package com.cyou.qb.system;

public class FrontUserContext implements UserContext{

	private int userId;
	private String userIP;
	private String systemName;
	
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getUserIp() {
		return userIP;
	}
	public void setUserIP(String userIP) {
		this.userIP = userIP;
	}
	public String getSystemName() {
		return systemName;
	}
	public void setSystemName(String systemName) {
		this.systemName = systemName;
	}
	
	public static UserContext getDefault() {
		FrontUserContext ret = new FrontUserContext();
		ret.setSystemName("qiangba_front");
		ret.setUserIP(SpringMvcUtils.getRequest().getRemoteAddr());
		ret.setUserId(-1);
		return ret;
	}
}
